//
//  Player.m
//  INFSWA02
//
//  Created by Justin van Grootveld on 9/22/11.
//  Copyright 2011 Pro4all. All rights reserved.
//

#import "Player.h"

@implementation Player

@synthesize identifier = _identifier, username = _username;

- (id)initWithUsername:(NSString *)username AndIdentifier:(NSInteger)identifier;
{
    self = [super init];
    if (self) 
    {
        _identifier = identifier;
        _username = username;
    }
    
    return self;
}

- (BOOL)isCurrentPlayer:(Player *)player
{
    return [player identifier] == [self identifier];
}

@end
